package com.zdsoft.finance.evaluate.service;

import com.zdsoft.finance.base.service.BaseService;
import com.zdsoft.finance.common.exception.BusinessException;
import com.zdsoft.finance.evaluate.entity.ProjectEvaluate;
import com.zdsoft.finance.evaluate.entity.ProjectEvaluateFirst;

/**
 * 项目评审servicei
 *
 * @author LiaoGuoWei
 * @create 2016-10-19 14:43
 **/
public interface ProjectEvaluateService extends BaseService<ProjectEvaluate>{


       /**
        * 获得对应业务品种项目申请地址
        * @param evaluateFirst 项目申请一级页面
        * @return 相应业务品种项目申请一级页面
        * @throws BusinessException 业务异常
        */
       public String getActualEvaluateUrl(ProjectEvaluateFirst evaluateFirst) throws BusinessException;

       /**
        * 保存项目申请一级页面数据
        * @param evaluateFirst 项目申请一级页面数据
        * @return 项目申请一级页面数据
        * @throws BusinessException 业务异常
        */
       public ProjectEvaluateFirst saveProjectEvaluateFirat(ProjectEvaluateFirst evaluateFirst) throws BusinessException;

       /**
        * 通过项目申请一级页面数据id 查找数据
        * @param id 项目申请一级页面ID
        * @return 项目申请一级页面数据
        * @throws BusinessException 业务异常
        */
       public ProjectEvaluateFirst findEvaluateFirstById(String id) throws BusinessException;

       /**
        * 保存项目申请主体
        * @param projectEvaluate 项目申请主体
        * @return 项目申请主体
        * @throws BusinessException 业务异常
        */
       public ProjectEvaluate saveProjectEvaluate(ProjectEvaluate projectEvaluate) throws BusinessException;

       /**
        * 通过ID查找项目申请
        * @param id 项目申请ID
        * @return 项目申请
        * @throws BusinessException 业务异常
        */
       public ProjectEvaluate findProjectEvaluateById(String id) throws BusinessException;

}
